/**
 * Copyright (C)  2011  chen wei hua.
 * Permission is granted to copy, distribute and/or modify this document
 * under the terms of the GNU Free Documentation License, Version 2.0
 * or any later version published by the Free Software Foundation;
 * with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
 * A copy of the license is included in the section entitled "GNU Free Documentation License".
 */
package com.javaeye.delivery.web;

import java.util.Date;

import com.javaeye.common.dto.DTO;

public class OrderCondition implements DTO {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2176790542618442777L;
	
	private String customName = "";
	
	private String productName = "";
	
	private Integer[] status;
	
	private Date beginDate;
	
	private Date endDate;
	
	private Date beginDate2;
	
	private Date endDate2;
	
	private int customId;
	
	private int logisticsId;
	
	private int skuId;
	
	private String logisticsName = "";
	
	private String orderNo;
	
	private String orderId;
	
	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getCustomName() {
		return customName;
	}

	public void setCustomName(String customName) {
		this.customName = customName;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public Integer[] getStatus() {
		return status;
	}
	
	public void setStatus(Integer[] status) {
		this.status = status;
	}
/*
	public void setStatus(Object[] status) {
		Integer[] newData = new Integer[status.length];
		int index = 0;
		for (Object o : status) {
			if (o instanceof String) {
				newData[index++] = Integer.parseInt((String)o);
			} else {
				newData[index++] = (Integer)o;
			}
		}
		this.status = newData;
	}
*/
	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public int getCustomId() {
		return customId;
	}

	public void setCustomId(int customId) {
		this.customId = customId;
	}

	public int getLogisticsId() {
		return logisticsId;
	}

	public void setLogisticsId(int logisticsId) {
		this.logisticsId = logisticsId;
	}

	/**
	 * @param logisticsName the logisticsName to set
	 */
	public void setLogisticsName(String logisticsName) {
		this.logisticsName = logisticsName;
	}

	/**
	 * @return the logisticsName
	 */
	public String getLogisticsName() {
		return logisticsName;
	}

	public Date getBeginDate2() {
		return beginDate2;
	}

	public void setBeginDate2(Date beginDate2) {
		this.beginDate2 = beginDate2;
	}

	public Date getEndDate2() {
		return endDate2;
	}

	public void setEndDate2(Date endDate2) {
		this.endDate2 = endDate2;
	}

	public int getSkuId() {
		return skuId;
	}

	public void setSkuId(int skuId) {
		this.skuId = skuId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getOrderId() {
		return orderId;
	}
	
}
